package com.anonymous.community.model;

/**
 * 登录响应 - 根据API v3.0.0文档
 * 响应格式：{ "token": "...", "user": {...} }
 */
public class LoginResponse {
    private String token;
    private User user;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public boolean isSuccess() {
        return token != null && !token.isEmpty();
    }
}
